<?php use_helper('I18N', 'Date') ?>
<?php include_partial('incident/assets') ?>

<?php include_partial('incident/ajax', array('ml_incidents' => $ml_incidents, 'form' => $form, 'configuration' => $configuration, 'helper' => $helper));
unset($form['suggest_box']);
 ?>

<div id="sf_admin_container">
<?php
$errors = false;
foreach($form AS $value){
	if($value->hasError()){
		$errors = true;
	}
}
if($errors){
include_partial('incident/new', array('ml_incidents' => $ml_incidents, 'form' => $form, 'pager' => $this->pager, 'sort' => $this->sort, 'configuration' => $configuration, 'helper' => $helper));
}
?>
</div>
